<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="head.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////// -->

<!--主体内容-->
<div class="main-layout-body">
	<!--tab 切换-->
	<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab"
		lay-allowClose="true">
		<ul class="layui-tab-title">
			<li class="layui-this welcome">大赛管理</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show" style="background: #f5f5f5;">
				<div class="page-content-wrap">
					
					<form method="post" action="${pageContext.request.contextPath }/back/contest/conlist.html">
					<div class="layui-form-item">
						<div class="layui-inline">
						<span>大赛名称:</span>
						<input name="queryConName" type="text" value="${queryConName }">
						</div>
						<div class="layui-inline">
						<span>申请状态:</span>
						<select name="queryConApplication">
							<c:if test="${applicationList!=null }">
								<option value="">--请选择--</option>
								<c:forEach var="application" items="${applicationList }">
									<option <c:if test="${application.id==queryConApplication }">selected="selected"</c:if>
									value="${application.id }">${application.appName }</option>
								</c:forEach>
							</c:if>
						</select>
						</div>
						<div class="layui-inline">
						<span>级别名称:</span>
						<select name="queryConLevel">
							<c:if test="${levelList!=null }">
								<option value="">--请选择--</option>
								<c:forEach var="level" items="${levelList }">
									<option <c:if test="${level.id==queryConLevel }">selected="selected"</c:if>
									value="${level.id }">${level.levName }</option>
								</c:forEach>
							</c:if>
						</select>
						</div>
						
						<input type="hidden" name="pageIndex" value="1"/>
						<input	value="查 询" type="submit" class="layui-btn layui-btn-normal">
						<a href="${pageContext.request.contextPath}/back/contest/add.html"  class="layui-btn layui-btn-normal" style="margin-left: 600px;">添加大赛</a>
						</div>
					
					</form>
					<div class="layui-form" id="table-list">
						<table class="layui-table" lay-skin="line" cellpadding="0" cellspacing="0">
							<tr  class="parent collapsed">
								<th width="10%">ID</th>
								<th width="10%">大赛编码</th>
								<th width="15%">大赛名称</th>
								<th width="25%">大赛简介</th>								
								<th width="10%">申请状态</th>								
								<th width="10%">大赛级别</th>
								<th width="20%">操作</th>
							</tr>
							<c:forEach var="contest" items="${contestList }"
								varStatus="status">
								<tr id='node-1' class="parent collapsed">
									<td class="hidden-xs"><span>${contest.id}</span></td>
									<td class="hidden-xs"><span>${contest.conCode}</span></td>
									<td class="hidden-xs"><span>${contest.conName}</span></td>
									<td class="hidden-xs"><span>${contest.details}</span></td>
									<td class="hidden-xs"><span>${contest.appName}</span></td>							
									<td class="hidden-xs"><span>${contest.levName}</span>
									</td>
									<td>										
										<div class="layui-inline">
											<div class="layui-inline">
											<a href="${pageContext.request.contextPath }/back/contest/viewcontest/${contest.id}"
												class="layui-btn layui-btn-mini layui-btn-normal  add-btn"
												contestid=${contest.id }>
												<i class="layui-icon">&#xe654;</i>
											</a>
											<a href="${pageContext.request.contextPath }/back/contest/modifycontest/${contest.id}"
												class="layui-btn layui-btn-mini layui-btn-normal  edit-btn"
												contestid=${contest.id }>
												<i class="layui-icon">&#xe642;</i>
											</a>
											<a href="${pageContext.request.contextPath }/back/contest/delcontest.html?id=${contest.id}"
												contestid=${contest.id }	
												class="layui-btn layui-btn-mini layui-btn-danger del-btn">
												<i class="layui-icon">&#xe640;</i>
											</a>
										</div>
											
										</div>
									</td>
								</tr>								
							</c:forEach>													
						</table>
						<input type="hidden" id="totalPageCount" value="${totalPageCount}"/>
		  				<c:import url="rollpage.jsp">
	          				<c:param name="totalCount" value="${totalCount}"/>
	          				<c:param name="currentPageNo" value="${currentPageNo}"/>
	          				<c:param name="totalPageCount" value="${totalPageCount}"/>
          				</c:import>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<%@include file="foot.jsp"%>